/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app

  router.get('/tabbar', controller.system.getTabbarList) // 获得次级标签列表

  router.post('/works', controller.works.getWorksList) // 获得留言墙列表
  router.post('/addWorks', controller.works.addWorks) // 添加留言墙信息
  router.post('/addWorksComment', controller.works.addWorksComment) // 添加留言墙评论
  router.post('/addWorksLike', controller.works.addWorksLike) // 给便签点赞

  router.post('/photo', controller.photo.getPhotoList) // 获得照片列表
  router.post('/addPhoto', controller.photo.addPhoto) // 添加照片
  router.post('/upload', controller.upload.upload) // 文件上传
}
